package com.xdk.templatescala.common.constants;

/**
 * @author: guozc
 * @date: 2021-08-03
 */
public abstract class Contants {
    /**
     * 控件Id为空的前缀标识
     */
    public final static String CONTROL_EMPTY_PRE = "field";

    /**
     * appId 应用Id
     */
    public final static String APP_ID = "appId";

    /**
     * workSheetId 表Id
     */
    public final static String WORK_SHEET_ID = "workSheetId";

    /**
     * http请求
     */
    public static final String HTTP = "http://";

    /**
     * https请求
     */
    public static final String HTTPS = "https://";
    /**
     * controlId 控件Id
     */
    public final static String CONTROL_ID = "controlId";

    /**
     * controlType 控件类型
     */
    public final static String CONTROL_TYPE = "controlType";
    /**
     * label 控件名称
     */
    public final static String LABEL = "label";

    /**
     * attribute 控件是否标题
     */
    public final static String ATTRIBUTE = "attribute";

    /**
     * rowId 记录Id
     */
    public final static String ROW_ID = "rowId";



    public final static String DEFAULT_CONTROL_JSON="{\n" +
            "    // 组件的自定义配置\n" +
            "    controlConfig: {\n" +
            "      label: '单行文本',\n" +
            "      labelWidth: null,\n" +
            "      showLabel: true,\n" +
            "      changeTag: true,\n" +
            "      tag: 'el-input',\n" +
            "      tagIcon: 'input',\n" +
            "      defaultValue: undefined,\n" +
            "      required: true,\n" +
            "      unique: true,\n" +
            "      layout: 'colFormItem',\n" +
            "      span: 24,\n" +
            "      // 正则校验规则\n" +
            "      regList: []\n" +
            "    },\n" +
            "    // 组件的插槽属性\n" +
            "    controlSlot: {\n" +
            "      prepend: '',\n" +
            "      append: ''\n" +
            "    },\n" +
            "    // 其余的为可直接写在组件标签上的属性\n" +
            "    placeholder: '请输入',\n" +
            "    style: { width: '100%' },\n" +
            "    clearable: true,\n" +
            "    prefixIcon: '',\n" +
            "    suffixIcon: '',\n" +
            "    maxlength: null,\n" +
            "    showWordLimit: false,\n" +
            "    readonly: false,\n" +
            "    disabled: false,\n" +
            "    controlType: 2\n" +
            "  }";
}
